# This file should be kept in sync with cluster/gce/coreos/kube-manifests/addons/node-problem-detector/node-problem-detector.yaml
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: node-problem-detector-v0.1
  namespace: kube-system
  labels:
    k8s-app: node-problem-detector
    version: v0.1
    kubernetes.io/cluster-service: "true"
spec:
  template:
    metadata:
      labels:
        k8s-app: node-problem-detector
        version: v0.1
        kubernetes.io/cluster-service: "true"
    spec:
      hostNetwork: true
      containers:
      - name: node-problem-detector
        image: k8s.gcr.io/node-problem-detector:v0.1
        env:
        # Config the host ip and port of apiserver.
        - name: "KUBERNETES_SERVICE_HOST"
          value: ${INSTANCE_PREFIX}-master
        - name: "KUBERNETES_SERVICE_PORT"
          value: "443"
        securityContext:
          privileged: true
        resources:
          limits:
            cpu: "200m"
            memory: "100Mi"
          requests:
            cpu: "20m"
            memory: "20Mi"
        volumeMounts:
        - name: log
          mountPath: /log
          readOnly: true
      volumes:
      - name: log
        hostPath:
          path: /var/log/
      securityContext:
        seLinuxOptions:
          type: spc_t
